package com.xbts.web.controller.system;

import com.xbts.common.core.controller.BaseController;
import com.xbts.common.core.domain.AjaxResult;
import com.xbts.common.core.domain.Setting;
import com.xbts.system.service.SettingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/setting")
public class SettingController extends BaseController {

    @Autowired
    private SettingService settingService;

    @RequestMapping("/saveUpdate")
    public AjaxResult updateSetting(@RequestBody Setting setting){
        settingService.saveUpdate(setting);
        return AjaxResult.success();
    }
}
